﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Chinaer.Win
{
    public partial class AddMenuCategory : Form
    {
        public AddMenuCategory()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            DTO.MenuCategoryDTO menucategoryDTO = new DTO.MenuCategoryDTO()
            {
                Name = this.textBox1.Text

            };
            var json = ChinaerService.Instance.AddMenuCategory(menucategoryDTO);
            MessageBox.Show(json.ErrorMessage.ToString());
        }
    }
}
